package tech.veedo.ragdoll.entity;

/**
 * 通用返回实体类
 *
 * @author yif zhang
 * @version 1.0.6
 * @since 2022-04-20
 */
public class GlobalResponseAdvice<T> {

    /**
     * 状态码
     */
    private Integer stateCode = 200;

    /**
     * 响应信息
     */
    private String message = "调用接口成功";

    /**
     * 返回数据
     */
    private T data = null;

    public Integer getStateCode() {
        return stateCode;
    }

    public GlobalResponseAdvice<T> setStateCode(Integer stateCode) {
        this.stateCode = stateCode;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public GlobalResponseAdvice<T> setMessage(String message) {
        this.message = message;
        return this;
    }

    public T getData() {
        return data;
    }

    public GlobalResponseAdvice<T> setData(T data) {
        this.data = data;
        return this;
    }
}
